package com.ruoyi.test_tree.mapper;

import java.util.List;
import com.ruoyi.test_tree.domain.DevicePurpose;

/**
 * 设备用途Mapper接口
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
public interface DevicePurposeMapper 
{
    /**
     * 查询设备用途
     * 
     * @param purposeId 设备用途主键
     * @return 设备用途
     */
    public DevicePurpose selectDevicePurposeByPurposeId(Long purposeId);

    /**
     * 查询设备用途列表
     * 
     * @param devicePurpose 设备用途
     * @return 设备用途集合
     */
    public List<DevicePurpose> selectDevicePurposeList(DevicePurpose devicePurpose);

    /**
     * 新增设备用途
     * 
     * @param devicePurpose 设备用途
     * @return 结果
     */
    public int insertDevicePurpose(DevicePurpose devicePurpose);

    /**
     * 修改设备用途
     * 
     * @param devicePurpose 设备用途
     * @return 结果
     */
    public int updateDevicePurpose(DevicePurpose devicePurpose);

    /**
     * 删除设备用途
     * 
     * @param purposeId 设备用途主键
     * @return 结果
     */
    public int deleteDevicePurposeByPurposeId(Long purposeId);

    /**
     * 批量删除设备用途
     * 
     * @param purposeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteDevicePurposeByPurposeIds(Long[] purposeIds);
}
